package com.library.bookmanagement.mapper;

import com.github.pagehelper.Page;
import com.library.bookmanagement.entity.Admin;

import java.util.List;

/**
 * @author ：ZXM
 * @date ：Created in 2020/5/8 16:52
 * @description：t_admin数据表映射接口
 */
public interface AdminMapper {

    Boolean deleteByPrimaryKey(Integer aId);

    Boolean insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(Integer aId);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);

    Page<Admin> selectAdminAll();


    List<Admin> selectBySelective(String username, String password);

    List<Admin> selectByEmail(String email);

    Admin selectByName(String username);
}